package com.chixing.day07_adstract.Interfaces1.f1;

public class Computer {
    private Mainboad mainboad;
    private String computerName;

    public Computer(String name){
        this.computerName=name;
    }

    public String getComputerName() {
        return computerName;
    }

    public void setComputerName(String computerName) {
        this.computerName = computerName;
    }

    public Mainboad getMainboad() {
        return mainboad;
    }

    public void setMainboad(Mainboad mainboad) {
        this.mainboad = mainboad;
    }

    public void start() {
        System.out.println("电脑"+computerName+"启动成功。。。。。。");
    }
    public void stop() {
        System.out.println("电脑"+computerName+"关机了。。。。。。");
    }
    public void showMsg() {
        System.out.println("电脑名称为："+computerName);
        System.out.println(this.mainboad.getVideoCard().display());
    }
}
